﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
/*
 *总仓库
 */
[CreateAssetMenu(fileName = "New MainItem", menuName = "Bag/New MainItem")]
public class MainItem : ScriptableObject
{
    public List<Item> itemList = new List<Item>();

    public void CreateExampleAsset(int a, Item exampleAsset)
    {
        //exampleAsset = CreateInstance<Item>();
        //string path = "Assets/Scripts/Items/BagItem/"+a+"Item.asset";
        //AssetDatabase.CreateAsset(exampleAsset, path);
        //AssetDatabase.SaveAssets();
        //AssetDatabase.Refresh();
    }
}
